<?php
/*
Default controller

Copyright 2011 Erick Martínez Sámano

This file is part of PHP Quick Calendar E.

PHP Quick Calendar E is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PHP Quick Calendar E is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

<http://www.gnu.org/licenses/>
*/

defined( '_JEXEC' ) or die( 'Restricted access' );

jimport('joomla.application.component.controller');

class pqceController extends JController
{

	function display()
	{
		$f=JRequest::getVar('f','','','string');
		$f=explode('.',$f);
		$month=JRequest::getVar('month','');
		$year=JRequest::getVar('year','');
		$day= JRequest::getVar('day','');
		$d=($f[0])? $f[0] : $day;
		$m=($f[1])? $f[1] : $month;
		$y=($f[2])? $f[2] : $year;
		$d=(int)$d;$m=(int)$m;$y=(int)$y;
		JRequest::setVar('day',$d);
		JRequest::setVar('month',$m);
		JRequest::setVar('year',$y);
		parent::display();
	}
}
